package com.pactera.homework.first.method1;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

/**
 * @Description: TODO
 * @Author: hejiayao
 * @CreateDate: 2022/12/8 15:42
 * @UpdateUser: hejiayao
 * @UpdateDate: 2022/12/8 15:42
 * @className: Somebody
 * @Package : com.pactera.homework.first
 * @Version: 1.0
 */
@Component("lihua")
public class Somebody {

    @Autowired
    @Qualifier("p30")
    private HWPhone hwPhone;

    public void usePhone() {
        hwPhone.call();
    }
}
